// src/api/music.js
import request from '../utils/axios';

/**
 * 上传 MP3 音频至阿里云 VOD
 * @param {FormData} formData 包含 title, fileName, description, fileSize, coverUrl, file
 * @returns {Promise}
 */
export function uploadAudio(formData) {
  return request({
    url: '/upload/createUploadAuth',
    method: 'post',
    data: formData
    // 不要手动写 headers，让 Axios 自动设置 Content-Type 和 boundary
  })
}
